import { useState } from "react";
import { useSubscribe } from "../../../framework/common/eventBus";
export default function useTableReady(key) {
  const [isReady, setIsReady] = useState(false);
  useSubscribe(key, (value = true) => {
    setIsReady(value);
  });
  return { isReady };
}
